import { IFeidaoAiBrowserComponent } from '@feidao/web/interfaces';
import { generate } from '@feidao/core/querystring';

export default async function a003(fd: IFeidaoAiBrowserComponent, ...args: any[]) {
	const t = new Date().getTime();
	const param = { opt: { width: 200 }, t }
	// 获取图片验证码
	const url = generate(param, 'http://172.16.15.20/get_captcha');
	const captcha = fd.data.node.querySelector('[data-feidao-id="captcha"]') as HTMLImageElement;
	captcha.src = url;
}
